]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: Don't set background actor sizing and scaling
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 3 Aug 2017 13:52:06 +0000 (15:52 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 1 Mar 2019 17:12:53 +0000 (17:12 +0000)
Mutter BackgroundActor is able do detect this at lower level

https://bugzilla.gnome.org/show_bug.cgi?id=765011

js/ui/background.js

index bcd9ffc13ea8ebf596147601a71a94cfd5866309..06e0388167ad02a75e5e40d02c559221248a37d6 100644 (file)
@@ -746,10 +746,8 @@ var BackgroundManager = class BackgroundManager {
 
         this._container.add_child(backgroundActor);
 
-        let monitor = this._layoutManager.monitors[this._monitorIndex];
-
-        backgroundActor.set_size(monitor.width, monitor.height);
         if (this._controlPosition) {
+            let monitor = this._layoutManager.monitors[this._monitorIndex];
             backgroundActor.set_position(monitor.x, monitor.y);
             backgroundActor.lower_bottom();
         }